package com.pojo;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

public class Role implements Serializable {

    private Long roleId;    //角色id
    private String roleName;    //角色名称
    private String describe;    //角色描述
    private Long superId;   //父级角色Id
    private Date createDate;    //创建时间
    private Date updateDate;  //修改时间
    private Long roleStatus;  //角色状态ID
    private String roleStatusName;  //角色状态名称
    private List<RightClassOne> rightClassOnes;  //角色权限
    private Long[] rights;  //权限数组

    @Override
    public String toString() {
        return "Role{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", describe='" + describe + '\'' +
                ", superId=" + superId +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", roleStatus=" + roleStatus +
                ", roleStatusName='" + roleStatusName + '\'' +
                ", rightClassOnes=" + rightClassOnes +
                ", rights=" + Arrays.toString(rights) +
                '}';
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Long getSuperId() {
        return superId;
    }

    public void setSuperId(Long superId) {
        this.superId = superId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Long getRoleStatus() {
        return roleStatus;
    }

    public void setRoleStatus(Long roleStatus) {
        this.roleStatus = roleStatus;
    }

    public String getRoleStatusName() {
        return roleStatusName;
    }

    public void setRoleStatusName(String roleStatusName) {
        this.roleStatusName = roleStatusName;
    }

    public List<RightClassOne> getRightClassOnes() {
        return rightClassOnes;
    }

    public void setRightClassOnes(List<RightClassOne> rightClassOnes) {
        this.rightClassOnes = rightClassOnes;
    }

    public Long[] getRights() {
        return rights;
    }

    public void setRights(Long[] rights) {
        this.rights = rights;
    }

    public Role() {
    }

    public Role(Long roleId, String roleName, String describe, Long superId, Date createDate, Date updateDate, Long roleStatus, String roleStatusName, List<RightClassOne> rightClassOnes) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.describe = describe;
        this.superId = superId;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.roleStatus = roleStatus;
        this.roleStatusName = roleStatusName;
        this.rightClassOnes = rightClassOnes;
    }
}
